/**
 * @global
 * @typedef {Map<'sp-overlay-close', CustomEvent<OverlayCloseEvent>>} GlobalEventHandlersEventMap
 */
export class OverlayCloseEvent extends Event {
    /**
     *
     * @type {HTMLElement | undefined}
     */
    root;

    /**
     *
     * @param {{ root: HTMLElement }} arg
     */
    constructor({ root }) {
        super('sp-overlay-close', { bubbles: true, composed: true });
        this.root = root;
    }
}
